import Cookies from 'js-cookie'

const TokenKey = 'token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token:any) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getUserTx() {
  return Cookies.get('userTx')
}

export function setUserTx(userTx:any) {
  return Cookies.set('userTx', userTx)
}

export function removeUserTx() {
  return Cookies.remove('userTx')
}